﻿using System;
using System.Collections.Generic;
using System.Data.Entity.ModelConfiguration;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Himall.Entity.Config
{
   public class FreightAreaContentInfoConfig : EntityTypeConfiguration<FreightAreaContentInfo>
    {
        public FreightAreaContentInfoConfig()
        {
            ToTable("Himall_FreightAreaContent");

            Property(item => item.AreaContent).HasColumnType("varchar").HasMaxLength(100);
            HasRequired(x => x.Himall_FreightTemplate).WithMany(x => x.Himall_FreightAreaContent).HasForeignKey(x => x.FreightTemplateId);
        }
    }
}
